package com.group5.onlinegame.dao;

import com.group5.onlinegame.entity.Game;
import com.group5.onlinegame.entity.GameRoom;
import com.group5.onlinegame.entity.GameType;

import java.util.List;

public interface IGameDao {
    List<Game> getList();
    List<GameType> getTypeList();
    Game getGameById(int id);
    int addGame(Game game);
    int editGame(Game game);
    int delGameById(int id);
    GameType gameType(int typeid);
    int editGameType(GameType gameType);
    int addGameType(GameType gameType);
    List<GameRoom> getRoomList();
    GameRoom checkRoom(int roomid);
    int editRoom(GameRoom gameRoom);
    int delType(Integer typeid);
    int delRoom(Integer roomid);
    int roomCheck(Integer roomid);
}
